package com.hotel.customersystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.customersystem.pojo.CustomerUser;
import com.hotel.customersystem.pojo.LoginUserVo;
import com.hotel.customersystem.pojo.UserVo;
import com.qiniu.common.QiniuException;

import java.util.Map;

/**
 * (CustomerUser)表服务接口
 *
 * @author makejava
 * @since 2022-09-30 16:33:32
 */
public interface CustomerUserService extends IService<CustomerUser> {

    // 上传头像
    Boolean uploadHeadPortrait(String userAdmin,String imgUrl) throws QiniuException;

    // 账号/密码/手机号登录
    LoginUserVo login(UserVo user);

    // 根据手机号即验证码登录
    LoginUserVo loginByPhoneCode(String phone, String code);

    // 注册
    Boolean register(CustomerUser customerUser);

    // 根据用户账号查询用户
    CustomerUser selectByAdmin(String userAdmin);

    // 验证手机验证码是否发送成功
    Boolean sendPhoneCode(Map<String,Object> map, String phone);
}

